package com.xdb.sqlparser.dialect.mysql.ast;

import com.xdb.sqlparser.ast.statement.SQLPrimaryKey;
import com.xdb.sqlparser.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlUnique extends MySqlKey implements SQLPrimaryKey {

	public MySqlUnique() {

	}

	protected void accept0(MySqlASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, this.getName());
			acceptChild(visitor, this.getColumns());
			acceptChild(visitor, this.getIndexName());
		}
		visitor.endVisit(this);
	}
}
